package com.itheima.tliassystem.aspect;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
//@Aspect
public class Aspec1 implements Ordered {
    @Before(" com.itheima.tliassystem.aspect.AspectDemo1.haha()")
    public  void before(){
        System.out.println("Aspect1 前置通知方法");
    }
    @After(" com.itheima.tliassystem.aspect.AspectDemo1.haha()")
    public  void after(){
        System.out.println("Aspect1 后置通知方法");
    }
    @Override
    public int getOrder() {


        return 888;
    }
}
